(async () => {
  const puppeteer = require('puppeteer')
  const browser = await puppeteer.launch()
  const page = await browser.newPage()
  await page.goto('http://localhost:1234/')
  await page.screenshot({
    path: './screenshot/home.png',
    fullPage: true
  })
  await page.close()
  await browser.close()
})()